package com.imjohn.mapper;

import com.imjohn.entity.Top_mid;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
@Repository
public interface TopmidMapper {
    /**
     * 校验是否点过赞
     * @return
     */
    List<HashMap> isGoodFlag( String userId, String aticleId);
    /**
     * 插入点赞表
     * */
    int setGoodFlag( String userId, String aticleId, String goodFlag);
    /**
    * 点赞取消
    * */
    int cancelGoodFlag( Top_mid top_mid);
}
